package com.yvdedu.hospital.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yvdedu.hospital.entity.User;
import com.yvdedu.hospital.mapper.MemberMapper;
import com.yvdedu.hospital.service.MemberService;

@Service
public class MemberSer implements MemberService {
	
	@Resource
	MemberMapper memberMapper;

	@Override
	public List<User> memberquery(int role_id) {
		List<User> list = memberMapper.memberquery(role_id);
		return list;
	}

	@Override
	public List<User> memberNamequery(User member) {
		List<User> list = memberMapper.memberNamequery(member);
		return list;
	}
	
	@Override
	public void memberadd(User member) {
		memberMapper.memberadd(member);
	}
	
	@Override
	public void memberedit(User user) {
		memberMapper.memberedit(user);
	}

	@Override
	public void memberdelete(int id) {
		memberMapper.memberdelete(id);
	}

	

}
